{% set page_name = "添加实名认证" %}
{% extends "realname_base.html" %}
{% block realname_content %}
<div class="row">
  <div class="medium-12 columns">
    <div class="section">
      <div class="section__header">
        <h1 class="section__title" data-heading>{{ _('添加实名认证') }}</h1>
      </div>
      <div class="section__body">
        <form method="post">
          {{ form.form_text({
            label:'Username / UID',
            name:'uidOrName',
            autofocus:true,
            required:true,
            value:uname
          }) }}
          {{ form.form_select({
            label:'认证',
            name:'flag',
            options:{
            '-1': _('(Not changed)'),
            '0': '不添加身份',
            '1': '学生',
            '2': '老师'
            },
            value: '-1'
          }) }}
          {{ form.form_text({
            label:'姓名',
            name:'name',
            value:name,
            placeholder:_('(Not changed)')
          }) }}

          <div class="row">
            <div class="columns">
              <button type="submit" class="rounded primary button">
                {{ _('Ok') }}
              </button>
              <button type="button" class="rounded button" onclick="window.history.go(-1)">
                {{ _('Cancel') }}
              </button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
{% endblock %}